package com.atguigu.gmall.order.feign;

import com.atguigu.gmall.cart.feign.CartFeignApi;
import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.oms.api.OmsFeignApi;
import com.atguigu.gmall.oms.vo.OrderSubmitVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gmall-oms")
public interface GmallOmsClient extends OmsFeignApi {
    /*
    创建订单
     */
    @PostMapping("oms/order/create/{userId}")
    public ResponseVo saveOrder(@RequestBody OrderSubmitVo submitVo, @PathVariable("userId")Long userId);
}
